<?php  
namespace app\index\model;  
use think\Model;  
class News extends Model{  
    protected $pk = 'id';  
    //protected static $table = 'news';  
}  